<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:82:"D:\xampp\htdocs\thinkphp5_home\public/../application/admin\view\category\edit.html";i:1476336263;s:79:"D:\xampp\htdocs\thinkphp5_home\public/../application/admin\view\public\top.html";i:1475995843;s:80:"D:\xampp\htdocs\thinkphp5_home\public/../application/admin\view\public\left.html";i:1478063778;}*/ ?>
<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/main.css"/>
    <script type="text/javascript" src="__PUBLIC__/static/admin/js/libs/modernizr.min.js"></script>
    
</head>
<body>
<!--页面顶部导航模块-->
<div class="topbar-wrap white">
    <div class="topbar-inner clearfix">
        <div class="topbar-logo-wrap clearfix">
            <h1 class="topbar-logo none"><a href="index.html" class="navbar-brand">后台管理</a></h1>
            <ul class="navbar-list clearfix">
                <li><a href="<?php echo url('../index/Index/index'); ?>">首页</a></li>
                <li><a href="<?php echo url('Index/index'); ?>" target="_blank" class="on" >后台</a></li>
            </ul>
        </div>
        <div class="top-info-wrap">
            <ul class="top-info-list clearfix">
            
                <li><a href="#">
                <?php 
                switch (session('user_type'))
                {
                case 0:
                  $username = '普通用户';
                  break;
                case 1:
                  $username = '系统管理员';
                  break;
                default:
                  $username = '未知身份';
                }
                  echo (session('user_name')." | ".$username);?>
                </a></li>
                <li><a href="<?php echo url('User/edit',array('id'=>session('user_id'))); ?>">修改密码</a></li>
                <li><a href="<?php echo url('Login/logout'); ?>">退出</a></li>
            </ul>
        </div>
    </div>
</div>

<div class="container clearfix">
	<!--页面左侧导航模块-->
	<div class="sidebar-wrap">
	<div class="sidebar-title">
		<h1>菜单</h1>
	</div>
	<div class="sidebar-content">
		<ul class="sidebar-list">
			<li>
				<a href="#"><i class="icon-font">&#xe003;</i>常用操作</a>
				<ul class="sub-menu">
					<li><a href="<?php echo url('Category/index'); ?>"><i class="icon-font">&#xe008;</i>栏目管理</a></li>
					<li><a href="<?php echo url('Article/index'); ?>"><i class="icon-font">&#xe005;</i>文章管理</a></li>
					<li><a href="<?php echo url('Page/index'); ?>"><i class="icon-font">&#xe012;</i>页面管理</a></li>
					<li><a href="<?php echo url('Link/index'); ?>"><i class="icon-font">&#xe052;</i>友情链接</a></li>
					<li><a href="design.html"><i class="icon-font">&#xe004;</i>留言管理</a></li>
					<li><a href="design.html"><i class="icon-font">&#xe033;</i>广告管理</a></li>
					<li><a href="<?php echo url('User/index'); ?>"><i class="icon-font">&#xe014;</i>用户管理</a></li>
				</ul>
			</li>
			<li>
				<a href="#"><i class="icon-font">&#xe018;</i>系统管理</a>
				<ul class="sub-menu">
					<li><a href="<?php echo url('Config/siteinfo'); ?>"><i class="icon-font">&#xe044;</i>网站信息</a></li>
					<!--li><a href="<?php echo url('Config/clist'); ?>"><i class="icon-font">&#xe017;</i>系统配置</a></li>
					<li><a href="<?php echo url('Config/index'); ?>"><i class="icon-font">&#xe003;</i>配置管理</a></li-->
					<li><a href="system.html"><i class="icon-font">&#xe037;</i>清理缓存</a></li>
					<li><a href="system.html"><i class="icon-font">&#xe016;</i>数据备份</a></li>
					<li><a href="system.html"><i class="icon-font">&#xe045;</i>数据还原</a></li>
				</ul>
			</li>
		</ul>
	</div>
</div>

    <!--/sidebar-->

    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="<?php echo url('Index/index'); ?>">后台</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="<?php echo url('Category/index'); ?>">栏目管理</a><span class="crumb-step">&gt;</span><span>修改</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">

                <!--action=""表单提交到当前控制器的当前方法-->

                <form action="" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <input type="hidden" name="id" value="<?php echo $record['id']; ?>">
                    <table class="insert-tab" width="100%">
                        <tbody>
                            <tr>
                                <th><i class="require-red">*</i>名称(英):</th>
                                <td>
                                    <input class="common-text-thin required" id="name" name="name" size="50" value="<?php echo $record['name']; ?>" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>名称(中):</th>
                                <td>
                                    <input class="common-text-thin required" id="name_cn" name="name_cn" size="50" value="<?php echo $record['name_cn']; ?>" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th>关键词:</th>
                                <td><input class="common-text-thin" name="keywords" size="50" value="<?php echo $record['keywords']; ?>" type="text"></td>
                            </tr>
                            <tr>
                                <th class="th_textarea">描述:</th>
                                <td><textarea class="common-textarea field-desc" id="content" name="desc" cols="30"  rows="10"><?php echo $record['desc']; ?></textarea></td>
                            </tr>
                            <!--tr>
                              <th><i class="require-red">*</i>栏目:</th>
                              <td>                                
                                  <select name="type" id="type" class="required category">
                                      <option value="">请选择</option>
                                      <?php switch($record['type']): case "0": ?>
                                          <option value="0" selected="selected">普通栏目</option>
                                          <option value="1">推荐栏目</option>
                                        <?php break; case "1": ?>
                                          <option value="0">普通栏目</option>
                                          <option value="1" selected="selected">推荐栏目</option>
                                        <?php break; default: ?>default
                                      <?php endswitch; ?>
                                  </select>
                              </td>
                            </tr-->
                            <tr>
                                <th><i class="require-red">*</i>父栏目</th>
                                <td><?php echo $CATEGORY_MENU; ?>
                                </td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn6 btn-primary mr10" type="submit" value="提交" >
                                    <input class="btn btn6" onclick="history.go(-1)" type="button" value="返回">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
</div>

</body>
</html>